package online.liulei.design.mode;

/**
 * 野鸭
 */
public class ModelDuck extends Duck {

    public ModelDuck(){
        quackBehavior = new Quack();
        flyBehavior = new FlyNoWay();
    }
    @Override
    public void display() {
        System.out.println("I'm a ral mallard duck...");
    }
}
